#include "led.h"

void setup(){
  pinMode(BUILTIN_LED,OUTPUT) ;     // Initialize the BUILTIN_LED pin as an output
  digitalWrite(LED_BUILTIN, HIGH);
  Serial.begin(115200);
  setup_wifi();
  client.setServer(mqtt_server, 1883);
  client.setCallback(callback);
  myTicker.attach(3, tickerHandle);
}


void loop() {
  if (!client.connected()) {
    reconnect();
  }
  client.loop();
  streamLedInLoop();
}
